Repository navigation
Conversation
suhanpark
requested review from
akshay-krishnan,
kathirgounder and
nantonzhang
December 2, 2026 06:46
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run the Chen et al. (GraphSfM, arXiv:1912.10659, Sections 3.1–3.2, Algorithms 1 and 2) image clustering, MaxST subgraph expansion, and MinST + MHT sub-model merging baseline from a verified COLMAP database through sparse reconstruction, mirroring the verified-database architecture of #1189.
The runner snapshots the filtered input database (
frontend.db+frontend_sha256), preserves local camera intrinsics into global triangulation and final sparse BA, supports Olsson, YFCC-IMB, and streaming Bundler.outreference poses, and records camera coverage, tree diagnostics, stage timings, and pose AUC with GTSfM's evaluator.This is a single-host implementation using PyCOLMAP for local incremental mapping, global triangulation, and final sparse BA, and GTSAM
Similarity3/Pose3/Rot3for pairwise alignment and spanning-tree merging. PairwiseSim(3)estimation uses 2-camera minimal RANSAC hypotheses refitted with chordal SO(3) orientation averaging and optimal scale/translation to avoid collinear camera-center roll ambiguity and survive catastrophically diverged local poses. The benchmark notes describe how it differs from the paper and how to reproduce each fixture.Files added (4 files, existing GTSfM code unchanged)
gtsfm/averaging/graph_sfm.py— NCut + Kruskal MaxST expansion, pairwise RANSACSim(3)+ symmetricmsd, Kruskal MinST + MHT anchor merging.scripts/run_graph_sfm.py— Standalone verified-COLMAP-database runner and evaluator.tests/averaging/test_graph_sfm.py— 8 unit and regression tests (clustering/expansion, outlier-resistantSim(3), catastrophic scale outliers, symmetricmsd, MHT anchor tie-breaking, MinST cycle filtering, WAL-safe snapshots, Bundler pose parsing).docs/benchmarks/chen2020_graph_sfm.md— Reproduction commands, paper differences, and observed results.Validation
tests/averaging/(8new +19existing) and the CIflake8check pass on a cleanorigin/mastercheckout.--max-cameras 6 --min-pair-inliers 3800): 3-cluster chain (msd = 0.0452, 0.0763), MHT anchor1, retained 12/12 cameras and 11,125 points with AUC@5° of0.9100after merging and0.9070after final BA (0.9131with--fix-final-intrinsics; single-model PyCOLMAP on same DB:0.9064).--max-cameras 6, CPU SIFT DB): Re-running on the same frozenfrontend.dbreproduced cluster membership,msd, point count, and pose AUC bit-for-bit. Unbounded overlap (C=0.5) retained 10/10 cameras with AUC@5°0.5245(single-model PyCOLMAP:0.5254); bounded overlap (C=0.4,O_max=4) exercised a 2-cluster merge (msd = 1.5437, AUC@5°0.2932→0.1985, reflecting local self-calibration variance on 9- and 5-camera subsets).--max-cameras 50 --completeness-ratio 0.5 --max-overlap 20, evaluated againstbundle.orig.out): Exercised a 4-cluster graph with a cycle (0–2–3–0+1–3), Kruskal MinST dropped the higher-MSD cycle edge(0, 3), and MHT selected anchor cluster3by size tie-break (60 > 30). Retained 114/120 cameras and 21,656 points in 69.3 s sequentially with AUC@5°0.5216(@10° = 0.6712,@20° = 0.7732) vs single-model PyCOLMAP (multiple_models=True) at 115/120 cameras, 21,577 points, 94.4 s, AUC@5°0.5550.